﻿CREATE PROCEDURE [dbo].[message_select_by_id]
    @messageId int
AS
SELECT
    [MessageId],
    [DateOfRead],
    [DateOfSend],
    [Message], 
    [RecipientId],
    [SenderId]
FROM [dbo].[Messages]
WHERE 
    Messages.[MessageId] = @messageId
RETURN 0
